Skip to content

Latest commit

 

History

History

Resize the PDF Viewer to its parent element

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

How to resize the SfPdfViewer with respect to its parent element

This example shows how to resize the SfPdfViewer within its container, at the run time. Here, the SfPdfViewer is rendered inside a Splitter component. When you resize the Splitter, the SfPdfViewer will stretch its size accordingly by using the UpdateViewerContainerAsync() method.

Documentation: https://blazor.syncfusion.com/documentation/pdfviewer-2/how-to/stretch-the-pdf-viewer-size-to-its-container

Project pre-requisites

To run this application, you need Visual Studio 2019 or later versions.

Deploying and running the sample

To debug while running the application, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.